import axiosApi from '../api/AxiosApi.js'


// const apiList = {
//   orderlist: {
//     method: 'POST',
//     url: `order-manager/order/page`
//   },
//   pcalist: {
//     method: 'GET',
//     url: `order-manager/order/pcalist`
//   },
//   findcitiesbyid:{
//     method: 'POST',
//     url: `order-manager/order/findcitiesbyid`
//   },
//   findareasbyid: {
//     method: 'POST',
//     url: `order-manager/order/findareasbyid`
//   }
// }


export default {
  orderlist(data) {
    return axiosApi({
      method: 'POST',
      url: 'http://localhost:8760/api/web-manager/order-manager/order/page',
      data
    })
  },
  pcalist(data) {
    return axiosApi({
      method: 'GET',
      url: 'http://localhost:8161/order-manager/order/pcalist',
      data
    })
  },
  findcitiesbyid(data) {
    return axiosApi({
      method: 'POST',
      url: 'http://localhost:8161/order-manager/order/findcitiesbyid',
      FormData:true,
      data
    })
  },
  findareasbyid(data) {
    return axiosApi({
      method: 'POST',
      url: 'http://localhost:8161/order-manager/order/findareasbyid',
      FormData: true,
      data
    })
  },
}

